package com.qy139.orderr.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qy139.entity.Orderr;
import com.qy139.entity.RoomQueryForm;
import com.qy139.orderr.mapper.OrderrMapper;
import com.qy139.orderr.service.IOrderrService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author huyueheng
 * @since 2021-12-15
 */
@Service
public class OrderrServiceImpl extends ServiceImpl<OrderrMapper, Orderr> implements IOrderrService {
    @Resource
    private OrderrMapper orderrMapper;

    @Override
    public IPage findAll(Page page, RoomQueryForm roomQueryForm ) {
        return orderrMapper.findAll(page,roomQueryForm);
    }

    @Override
    public List<Map> findIncome(RoomQueryForm roomQueryForm) {
        return orderrMapper.findIncome(roomQueryForm);
    }

    @Override
    public int insertincome(RoomQueryForm roomQueryForm) {
        return orderrMapper.insertincome(roomQueryForm);
    }

}
